package pageobjectpattern;

import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.WebDriver;



public class MainPage extends Page {
       
        public MainPage(WebDriver driver) {
                super(driver);
        }
       
        public boolean isOpen(){
                try{
                	findElementByLinkText("wyloguj");
                } catch(NoSuchElementException e){
                        return false;
                }
                return true;
        }
}

